home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / misc / gs261src.zip / bseq.h < prev    next >
Text File  |  1993-05-13  |  2KB  |  50 lines

  1. /* Copyright (C) 1990 Aladdin Enterprises.  All rights reserved.
  2.  
  3. This file is part of Ghostscript.
  4.  
  5. Ghostscript is distributed in the hope that it will be useful, but
  6. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. to anyone for the consequences of using it or for whether it serves any
  8. particular purpose or works at all, unless he says so in writing.  Refer
  9. to the Ghostscript General Public License for full details.
  10.  
  11. Everyone is granted permission to copy, modify and redistribute
  12. Ghostscript, but only under the conditions described in the Ghostscript
  13. General Public License.  A copy of this license is supposed to have been
  14. given to you along with Ghostscript so you can know your rights and
  15. responsibilities.  It should be in a file named COPYING.  Among other
  16. things, the copyright notice and this notice must be preserved on all
  17. copies.  */
  18.  
  19. /* bseq.h */
  20. /* Definitions for Level 2 binary object sequences */
  21.  
  22. /* Binary object sequence element types */
  23. typedef enum {
  24.   bs_null = 0,
  25.   bs_integer = 1,
  26.   bs_real = 2,
  27.   bs_name = 3,
  28.   bs_boolean = 4,
  29.   bs_string = 5,
  30.   bs_eval_name = 6,
  31.   bs_array = 9,
  32.   bs_mark = 10
  33. } bin_seq_type;
  34. #define bs_executable 128
  35.  
  36. /* Definition of an object in a binary object sequence */
  37. typedef struct {
  38.   byte tx;            /* type and executable flag */
  39.   byte unused;
  40.   union {
  41.     ushort w;
  42.     byte b[2];
  43.   } size;
  44.   union {
  45.     long w;
  46.     float f;
  47.     byte b[4];
  48.   } value;
  49. } bin_seq_obj;
  50.